<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
		<meta charset="utf-8">
		<title>淘天机站群系统管理后台</title>
		<!-- include header_meta -->
</head>

<body>
    <!-- include header -->
    <div class="cp-wrap {if $jnarrow}jnarrow{/if}" style="background:#eee;">
        <div class="crumb"> > 选择站点</div>
        <div class="cp-form">
            <div class="select-box">
                <div class="caption">选择要操作的站点</div>
                <select name="yumingselect" class="yumingselect" onchange="redirect_site(options[selectedIndex].value)">
                    <option value="-1" selected="selected">请选择站点</option>
                    <!--foreach $allyuming-->
                    <option value="{$id}" {if $currentYuming[id]==$id}selected{/if} >{$name}</option>
                    <!--/foreach-->
                </select>
                <script>
                    $('select[name=yumingselect]').select2();
                    function redirect_site(siteid) {
                        var reg = new RegExp(/\&yuming_id=[\d\-]*/g);
                        window.location.href = '{$_SERVER[HTTP_REFERER]}'.replace(reg, "") + "&yuming_id=" + siteid;
                    }
                </script>
            </div>
        </div>

    </div>
    <!-- include footer -->

    <style>
        .select-box{ width: 300px; margin: 100px auto; }
        .select-box .caption{ font-size: 16px; padding: 20px 0; color: #0092DD; }
        .select-box .select2-container .select2-selection--single{ height: 45px; line-height: 45px; }
        .select-box .select2-container--default .select2-selection--single{ border:none; }
        .select-box .select2-container--default .select2-selection--single .select2-selection__rendered{ height: 45px; line-height: 45px; }
        .select-box .select2-container--default .select2-selection--single .select2-selection__arrow{ height: 45px; }
    </style>
</body>

</html>